package com.dmai.capacity.platform.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "spring.mail")
public class MailProperties {
    /**  * 用户名 */
    private String username;
    /** * 授权码 */
    private String password;
    /** * host */
    private String host;
    /** * 端口 */
    private Integer port;
    /*** 协议 */
    private String protocol;
    /** * 默认编码*/
    private String defaultEncoding;
}